/**
	The Minerva Project, DAG Scheduling Tools
	Copyright (C) 2006 Florin Pop & Stefan Bucur

	This program is free software; you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
 */
package ro.pub.cs.minerva.monitoring;

/**
 * @author stefan
 *
 */
public class GanttChartMetrics implements Cloneable {
	private float chartWidth = 0.0f;
	private float chartHeight = 0.0f;
	
	private float resourceAxisWidth = 0.0f;
	private float timeAxisHeight = 0.0f;
	
	private float resourceHeight = 0.0f;
	
	private float legendWidth = 100.0f;
	
	private float titleHeight = 0.0f;
	
	private float timeUnit = 1.0f;
	
	public static final GanttChartMetrics DEFAULT_METRICS =
		new GanttChartMetrics();
	
	public GanttChartMetrics() {
		
	}
	
	

	public Object clone(){
		GanttChartMetrics result = null;
		try {
			result = (GanttChartMetrics) (super.clone());
		} catch (CloneNotSupportedException ex) {
			// Do nothing
		}
		
		return result; 
	}



	public float getChartWidth() {
		return chartWidth;
	}

	public void setChartWidth(float chartWidth) {
		this.chartWidth = chartWidth;
	}

	public float getChartHeight() {
		return chartHeight;
	}

	public void setChartHeight(float chartHeight) {
		this.chartHeight = chartHeight;
	}

	public float getResourceAxisWidth() {
		return resourceAxisWidth;
	}

	public void setResourceAxisWidth(float resourceAxisWidth) {
		this.resourceAxisWidth = resourceAxisWidth;
	}

	public float getTimeAxisHeight() {
		return timeAxisHeight;
	}

	public void setTimeAxisHeight(float timeAxisHeight) {
		this.timeAxisHeight = timeAxisHeight;
	}

	public float getResourceHeight() {
		return resourceHeight;
	}

	public void setResourceHeight(float resourceHeight) {
		this.resourceHeight = resourceHeight;
	}



	public float getLegendWidth() {
		return legendWidth;
	}



	public void setLegendWidth(float legendWidth) {
		this.legendWidth = legendWidth;
	}



	public float getTitleHeight() {
		return titleHeight;
	}



	public void setTitleHeight(float titleHeight) {
		this.titleHeight = titleHeight;
	}



	public float getTimeUnit() {
		return timeUnit;
	}



	public void setTimeUnit(float timeUnit) {
		this.timeUnit = timeUnit;
	}
}
